All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.QTException
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----quicktime.QTException
- public class QTException
- extends Exception
A General catch all class that is used to signal errors that occur from QTML calls
-
QTException(int)
- Creates an exception with a specific error number
-
QTException(String)
- Creates an exception with a message that could contain information
that could be displayed to the user.
-
checkError(int)
- This method will throw an exception if the incoming err argument is
a non-zero value.
-
errorCode()
- Return the error code that generated the exception.
-
errorCodeToString()
- Returns a string that represents the error code of the current QTException.
-
errorCodeToString(int)
- Returns a string that represents the error code of the current QTException.
-
isDrawingError(int)
- This routine checks the result of drawing operations that may report an error
code that is transitory and can be ignored.
-
toString()
- Print current build information and current exception details.
QTException
public QTException(String str)
- Creates an exception with a message that could contain information
that could be displayed to the user.
- Parameters:
- str - The message that could be displayed to the user
QTException
public QTException(int val)
- Creates an exception with a specific error number
- Parameters:
- val - the error number
errorCodeToString
public static String errorCodeToString(int eCode)
- Returns a string that represents the error code of the current QTException.
This will return the name of the error code as represented in the quicmtime.Errors interface.
If the error code is unknown then the string "Unknown Error Code" will be returned.
- Returns:
- a string that represents the current error code of the QTException.
checkError
public static void checkError(int err) throws QTException
- This method will throw an exception if the incoming err argument is
a non-zero value.
- Parameters:
- err - the result or error code if non-zero an exception is thrown
isDrawingError
public static int isDrawingError(int err)
- This routine checks the result of drawing operations that may report an error
code that is transitory and can be ignored.
Error codes ignored are:
- codecNothingToBlitErr
- codecOffscreenFailedErr
errorCode
public int errorCode()
- Return the error code that generated the exception. If there was no QT error code number known
this value will be 0 in which case the message contains information about the exception.
- Returns:
- an int
errorCodeToString
public String errorCodeToString()
- Returns a string that represents the error code of the current QTException.
This will return the name of the error code as represented in the quicmtime.Errors interface.
If the error code is unknown then the string "Unknown Error Code" will be returned.
- Returns:
- a string that represents the current error code of the QTException.
toString
public String toString()
- Print current build information and current exception details.
- Overrides:
- toString in class Throwable
All Packages Class Hierarchy This Package Previous Next Index